package com.vlong.town.controller.server.labour;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.vlong.town.controller.base.BaseController;
import com.vlong.town.entity.house.HouseInfo;
import com.vlong.town.entity.labour.Labour;
import com.vlong.town.service.labour.LabourService;

@RestController
@RequestMapping("/labour")
public class LabourRestController extends BaseController{
	
	@Autowired
	private LabourService labourService;//业务接口
	
	
	@GetMapping("/listXcx")
    public List<Labour> listXcx() {
	 List<Labour> queryList = labourService.queryList(null, 0, null, null, null, null, null, null, null, null, null, null, null, null);
        for (Labour Labour : queryList) {
        	Long createTime = Labour.getCreateTime();
        	SimpleDateFormat  sdf=new  SimpleDateFormat("yyyy-MM-dd");
        	Date date = new  Date(createTime);
        	String format = sdf.format(date);
        	//Labour.setCreateDate(format);
		}
        return queryList;
    }
	    
	
	
	
}
